import { POST, UPLOAD } from "@/services/request.js";


export default {
    //注册接口
    register(data = {}) {
        return POST({
            url: "business/register",
            params: data
        })
    },
    //登录接口
    login(data = {}) {
        return POST({
            url: "business/login",
            params: data
        })
    },
    //登录接口
    check(data = {}) {
        return POST({
            url: "business/check",
            params: data
        })
    },
    //基本信息接口
    profile(data = {}) {
        return UPLOAD({
            url: "business/profile",
            params: data
        })
    },
    //邮箱验证接口
    sendmail(data = {}) {
        return POST({
            url: "business/sendmail",
            params: data
        })
    },
    email(data = {}) {
        return POST({
            url: "business/email",
            params: data
        })
    },
    consume(data = {}) {
        return POST({
            url: "business/consume",
            params: data
        })
    },
    recharge(data = {}) {
        return POST({
            url: "business/recharge",
            params: data
        })
    },
    rechargelist(data = {}) {
        return POST({
            url: "business/rechargelist",
            params: data
        })
    },

}